package com.iraeta.entity.main.type;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/*盘点计划周期*/
public class PlanZq {
    public static final int undefined = 0;
    public static final int once = 1;
    public static final int month = 2;
    public static final int jidu = 3;

    public static String getPlanZqName(int typeId){
        String res = "未知";
        switch (typeId){
            case undefined:
                res="未知";
                break;
            case once:
                res="一次性";
                break;
            case month:
                res="月度";
                break;
            case jidu:
                res="季度";
                break;
        }
        return res;
    }

    public static List<HashMap<String,Object>> getList(){
        List<HashMap<String,Object>> res = new ArrayList<>();
        HashMap<String,Object> map1 = new HashMap<>();
        map1.put("id", PlanZq.once);
        map1.put("name", "一次性");
        HashMap<String,Object> map2 = new HashMap<>();
        map2.put("id", PlanZq.month);
        map2.put("name", "月度");
        HashMap<String,Object> map3 = new HashMap<>();
        map3.put("id", PlanZq.jidu);
        map3.put("name", "季度");
        res.add(map1);
        res.add(map2);
        res.add(map3);
        return res;
    }
}
